<template>
    <div class="content">
        <div class="top">
            <ul>
                <li>
                    <el-date-picker v-model="beforeValue" type="date" placeholder="选择日期">
                    </el-date-picker>
                    <span>至</span>
                    <el-date-picker v-model="afterValue" type="date" placeholder="选择日期">
                    </el-date-picker>
                </li>
                <li>
                    <SelectIpt><p>业务场景</p></SelectIpt>
                </li>
                <li>
                    <SelectIpt><p>预警类型</p></SelectIpt>
                </li>
                <li>
                    <SelectIpt><p>状态</p></SelectIpt>
                </li>
            </ul>
            <div class="btn">
                <GreenBtn>查询</GreenBtn>
            </div>
        </div>
        <div class="table">
            <el-table :data="tableData" border style="width: 100%">
                <el-table-column prop="date" label="日期" width="180">
                </el-table-column>
                <el-table-column prop="name" label="姓名" width="180">
                </el-table-column>
                <el-table-column prop="address" label="地址">
                </el-table-column>
            </el-table>
        </div>
    </div>
</template>

<script>
import SelectIpt from '@/components/SelectIpt.vue';
import GreenBtn from '@/components/GreenBtn.vue';
export default {
    components: {
        GreenBtn,
        SelectIpt,
    },
    data() {
        return {
            //第一个日期
            beforeValue:'',
            //第二个日期
            afterValue:'',

            tableData: [{
                date: '2016-05-02',
                name: '王小虎',
                address: '上海市普陀区金沙江路 1518 弄'
            }, {
                date: '2016-05-04',
                name: '王小虎',
                address: '上海市普陀区金沙江路 1517 弄'
            }, {
                date: '2016-05-01',
                name: '王小虎',
                address: '上海市普陀区金沙江路 1519 弄'
            }, {
                date: '2016-05-03',
                name: '王小虎',
                address: '上海市普陀区金沙江路 1516 弄'
            }]
        }
    }
}
</script>

<style scoped>
.top>>> .el-date-editor--date input{
    height: 30px;
    border-color: #DCDFE6;
}
.top>>>.el-icon-date,.top>>>.el-input__icon{
    line-height: 30px;
}
.top li {
    margin-bottom: 20px;
}
span{
    color: #666;
    font-size: 13px;
    margin: 0 15px;
}
</style>